home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / lib / c / syscall / RCS / Ioc_SetFlags.c,v < prev    next >
Encoding:
Text File  |  1991-12-11  |  1.9 KB  |  94 lines

  1. head     1.1;
  2. branch   ;
  3. access   ;
  4. symbols  sprited:1.1.1;
  5. locks    ; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.1
  10. date     88.06.19.14.29.24;  author ouster;  state Exp;
  11. branches 1.1.1.1;
  12. next     ;
  13.  
  14. 1.1.1.1
  15. date     91.12.10.16.54.09;  author kupfer;  state Exp;
  16. branches ;
  17. next     ;
  18.  
  19.  
  20. desc
  21. @@
  22.  
  23.  
  24.  
  25. 1.1
  26. log
  27. @Initial revision
  28. @
  29. text
  30. @/* 
  31.  * Ioc_SetFlags.c --
  32.  *
  33.  *    Source code for the Ioc_SetFlags library procedure.
  34.  *
  35.  * Copyright 1988 Regents of the University of California
  36.  * Permission to use, copy, modify, and distribute this
  37.  * software and its documentation for any purpose and without
  38.  * fee is hereby granted, provided that the above copyright
  39.  * notice appear in all copies.  The University of California
  40.  * makes no representations about the suitability of this
  41.  * software for any purpose.  It is provided "as is" without
  42.  * express or implied warranty.
  43.  */
  44.  
  45. #ifndef lint
  46. static char rcsid[] = "$Header: proto.c,v 1.2 88/03/11 08:39:08 ouster Exp $ SPRITE (Berkeley)";
  47. #endif not lint
  48.  
  49. #include <sprite.h>
  50. #include <fs.h>
  51.  
  52.  
  53. /*
  54.  *----------------------------------------------------------------------
  55.  *
  56.  * Ioc_SetFlags --
  57.  *    Set the flags for the stream.  In this case the flags argument
  58.  *    completely specifies what the stream flags should look like,
  59.  *    ie. it replaces the stream's flags if that is acceptable to
  60.  *    the kernel and the device driver.
  61.  *
  62.  * Results:
  63.  *    None.
  64.  *
  65.  * Side effects:
  66.  *    Set the flags field of the stream.
  67.  *
  68.  *----------------------------------------------------------------------
  69.  */
  70.  
  71. ReturnStatus
  72. Ioc_SetFlags(streamID, flags)
  73.     int streamID;
  74.     int flags;
  75. {
  76.     register ReturnStatus status;
  77.  
  78.     status = Fs_IOControl(streamID, IOC_SET_FLAGS, sizeof(int),
  79.             (Address)&flags, 0, (Address)NULL);
  80.     return(status);
  81. }
  82. @
  83.  
  84.  
  85. 1.1.1.1
  86. log
  87. @Initial branch for Sprite server.
  88. @
  89. text
  90. @d17 1
  91. a17 1
  92. static char rcsid[] = "$Header: /sprite/src/lib/c/syscall/RCS/Ioc_SetFlags.c,v 1.1 88/06/19 14:29:24 ouster Exp $ SPRITE (Berkeley)";
  93. @
  94.